<?php 
echo "<ul id=\"fullbar\">";
echo "<li><h2>Due to the size of this document it may take a few seconds to download. Thanks for your patience.</h2><div style=\"text-align:right;\"><a href=\"viewing_tips.php\">viewing newspaper help</a></div></li>";
echo "<li>";
if(isset($_GET['f'])) {
    $flashName = $db->escape($_GET['f']);
    echo <<< EOT
<object type="application/x-shockwave-flash" data="outswf.php?f=$flashName.pdf.swf" width="729" height="800">
    <param name="movie" value="outswf.php?f=$flashName.pdf.swf" /><p>Please check you have Adobe Flash installed.</p></object>

EOT;
} else {
    echo "<p>Unable to display publication</p>";
}
echo <<< EOT
        </li>
    </ul>
</div>

EOT;
?>
